package com.rdc.example.dao;

import com.rdc.example.entity.VerificationCode;

public interface VerificationCodeDao {
    boolean insert(VerificationCode verificationCode) throws Exception;

    VerificationCode getByCode(String code) throws Exception;

    VerificationCode getByCode(String code, Integer type) throws Exception;

    boolean useVerificationCode(String code) throws Exception;
}
